package com.woniu.common.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单详细
 * @TableName t_order_detail
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderDetailDto implements Serializable {

    private Long id;

    /**
     * 
     */
    private Long orderNum;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 商品id
     */
    private Integer itemId;

    /**
     * 商品名称
     */
    private String itemName;

    /**
     * 商品价格
     */
    private BigDecimal itemPrice;

    /**
     * 购买数量
     */
    private Integer buyNum;

    /**
     * 用户手机号码
     */
    private String userTelephone;

    /**
     * 支付金额
     */
    private BigDecimal payMoney;

    /**
     * 订单类型id
     */
    private Integer orderTypeId;

    /**
     * 订单业务类型id
     */
    private Integer orderServiceId;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    private BigDecimal itemCost;

    private String itemPlace;

    private String receiver;

    private String receiverPhone;

    private String stateName;
    private String typeName;
    private String serviceName;
    private Integer orderPayId;

    /**
     * 一级分类名
     */
    private String oneTypeName;
    /**
     * 二级分类名
     */
    private String twoTypeName;
    private Integer isremark;

    private Integer integral;
}